package com.example.springbootjspshiro.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springbootjspshiro.pojo.Perms;
import com.example.springbootjspshiro.pojo.Role;
import com.example.springbootjspshiro.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    public void Register(User user);
    public User Login(String username);
    public List<Role> findRolesByUsername(String username);
    public User findUseRolesByUsername(String username);
    public List<Perms> findPermsByRoleId(Integer id);
}
